//---------------------------------------------------------------------------

#ifndef OPLOMBH
#define OPLOMBH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "Shablon_Edit.h"
#include <ExtCtrls.hpp>
#include "cxClasses.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxDBData.hpp"
#include "cxFilter.hpp"
#include "cxGrid.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridDBTableView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxStyles.hpp"
#include <DB.hpp>
#include "cxButtons.hpp"
#include <ActnList.hpp>
#include <Menus.hpp>
#include <DBCtrls.hpp>
#include "cxCalendar.hpp"
#include "cxDBEdit.hpp"
#include "cxDropDownEdit.hpp"
#include "cxMaskEdit.hpp"
#include "cxTextEdit.hpp"
#include <Mask.hpp>
#include <ComCtrls.hpp>
#include "cxDBProgressBar.hpp"
#include "cxProgressBar.hpp"
#include "cxDBTrackBar.hpp"
#include "cxTrackBar.hpp"
#include "cxSpinEdit.hpp"
#include "cxCalc.hpp"
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrOPLOMB : public TfrShablon_Edit
{
__published:	// IDE-managed Components
	TcxGrid *sgOPLOMB;
	TcxGridDBTableView *sgOPLOMBDBTableView1;
	TcxGridLevel *sgOPLOMBLevel1;
	TcxGridDBColumn *NOM_ABON;
	TcxGridDBColumn *MARKA;
	TcxGridDBColumn *MODEL;
	TcxGridDBColumn *ZAV_NOM;
	TcxGridDBColumn *PLOMB;
	TcxGridDBColumn *DATA_PLOMB;
	TcxGridDBColumn *KEM_OPLOMB;
	TcxGridDBColumn *DATA_UST;
	TcxGridDBColumn *DAT_WOD;
	TcxGridDBColumn *cxgrdbclmnKOD_OPERATORA;
	TcxButton *btPOISK;
	TcxButton *btAdd;
	TActionList *ActionList1;
	TAction *POISK;
	TAction *ADD;
	TLabel *Label1;
	TLabel *Label2;
	TLabel *Label3;
	TLabel *Label4;
	TDBText *labNOM_ABON;
	TDBText *labMARKA;
	TDBText *labMODEL;
	TDBText *labDAT_UST;
	TLabel *Label5;
	TDBText *labZAV_NOM;
	TLabel *Label6;
	TDBEdit *dbePLOMB;
	TLabel *Label7;
	TDBLookupComboBox *cbKEM_PLOMB;
	TLabel *Label8;
	TcxDBDateEdit *dtpDAT_PLOMB;
	TcxButton *btSave;
	TAction *SAVE;
	TIBCQuery *dsetOPLOMB;
	TIBCDataSource *dsOPLOMB;
	TAction *actESC;
	void __fastcall FormShow(TObject *Sender);
	void __fastcall ADDExecute(TObject *Sender);
	void __fastcall SAVEExecute(TObject *Sender);
	void __fastcall dbePLOMBKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall cbKEM_PLOMBClick(TObject *Sender);
	void __fastcall dtpDAT_PLOMBKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall POISKExecute(TObject *Sender);
	void __fastcall actESCExecute(TObject *Sender);
	void __fastcall sgOPLOMBDBTableView1DblClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
int NOM,Stat;
	__fastcall TfrOPLOMB(TComponent* Owner);
	void __fastcall TfrOPLOMB::Obnovi(int Stat);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrOPLOMB *frOPLOMB;
//---------------------------------------------------------------------------
#endif
